QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    authwindow.cpp \
    configmanager.cpp \
    main.cpp \
    mainwindow.cpp \
    networkmanager.cpp \
    subwindows/expirycheck.cpp \
    subwindows/medicineadd.cpp \
    subwindows/medicinedelete.cpp \
    subwindows/medicinequery.cpp \
    subwindows/medicinetake.cpp \
    subwindows/medicineupdate.cpp \
    subwindows/purchaseordercreate.cpp \
    subwindows/purchaserecordquery.cpp \
    subwindows/salesrecordquery.cpp \
    subwindows/stockcheck.cpp \
    subwindows/userdelete.cpp \
    subwindows/userregister.cpp \
    subwindows/userupdate.cpp

HEADERS += \
    authwindow.h \
    configmanager.h \
    mainwindow.h \
    networkmanager.h \
    subwindows/expirycheck.h \
    subwindows/medicineadd.h \
    subwindows/medicinedelete.h \
    subwindows/medicinequery.h \
    subwindows/medicinetake.h \
    subwindows/medicineupdate.h \
    subwindows/purchaseordercreate.h \
    subwindows/purchaserecordquery.h \
    subwindows/salesrecordquery.h \
    subwindows/stockcheck.h \
    subwindows/userdelete.h \
    subwindows/userregister.h \
    subwindows/userupdate.h \
    usermanager.h

FORMS += \
    authwindow.ui \
    mainwindow.ui \
    subwindows/expirycheck.ui \
    subwindows/medicineadd.ui \
    subwindows/medicinedelete.ui \
    subwindows/medicinequery.ui \
    subwindows/medicinetake.ui \
    subwindows/medicineupdate.ui \
    subwindows/purchaseordercreate.ui \
    subwindows/purchaserecordquery.ui \
    subwindows/salesrecordquery.ui \
    subwindows/stockcheck.ui \
    subwindows/userdelete.ui \
    subwindows/userregister.ui \
    subwindows/userupdate.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc
